program d;

{$APPTYPE CONSOLE}

var
  s: String;
  Error: Boolean;
  ki, ko, i, n: Word;
begin
  readln(n);
  ki := 0;
  ko := 0;
  Error := False;
  for i := 1 to n do
  begin
    readln(s);
    if (s = 'In') then
      Inc(ki);
    if (s = 'Out') then
      Inc(ko);
    if (ko > ki) then
      Error := True;
  end;
  if Error then
    writeln('Error')
  else
    if (ki > ko) then
      writeln('Cunning elector')
    else
      writeln('Just a fantasy')
end.
